using System;
using System.Runtime.Serialization;
using mitasoft.Component.Attributes;
using System.Collections.Generic;


namespace mitasoft.Component.Models.Blog {
    public class PostInfo {

        [DataMember(Name = "postid")]
        public int Id { get; set; }

        [DataMember(Name = "title")]
        public string Title { get; set; }

        [DataMember(Name = "description")]
        public string Description { get; set; }

        [DataMember(Name = "dateCreated")]
        public DateTime DateCreated { get; set; }

        [DataMember(Name = "publish")]
        public bool Publish { get; set; }

        [DataMember(Name = "categories")]
        [ExcludeColumn]
        public IEnumerable<string> Categories { get; set; }
    }
}
